﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Calculate_Price
{
    class Program
    {
        static void Main(string[] args)
        {
            cl_0423_Shop sp1, sp2, sp3, sp4, sp5, sp6, sp7, sp8, sp9;
            cl_0423_Bag bag1, bag2, bag3,bag4;

            sp1 = new cl_0423_Specialty();
            sp2 = new cl_0423_Specialty();
            sp3 = new cl_0423_Map();
            bag1 = new cl_0423_Bag("红色小袋子");
            bag1.add(sp1);
            bag1.add(sp2);
            bag1.add(sp3);
            Console.WriteLine();
           

            sp4 = new cl_0423_Cauliflower();
            sp5 = new cl_0423_Cauliflower();
            sp6 = new cl_0423_Oil();
            sp7 = new cl_0423_Oil();
            bag2 = new cl_0423_Bag("白色小袋子");
            bag2.add(sp4);
            bag2.add(sp5);
            bag2.add(sp6);
            bag2.add(sp7);
            Console.WriteLine();


            sp8 = new cl_0423_Racket();
            bag3 = new cl_0423_Bag("中袋子");
            bag3.add(bag1);
            bag3.add(sp8);
            Console.WriteLine("红色小袋子和羽毛球拍装入中袋子");
            Console.WriteLine();

            sp9 = new cl_0423_Shoes();
            bag4 = new cl_0423_Bag("大袋子");
            bag4.add(bag2);
            bag4.add(bag3);
            bag4.add(sp9);
            Console.WriteLine("中袋子，白色袋子和鞋装入大袋子");
            Console.WriteLine();


            Console.WriteLine("共计:"+bag4.GetPrice()+"元");
            Console.ReadKey();



        }
    }
}
